package yunquan.wang.modules.base.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import yunquan.wang.base.domain.IdEntity;
@Entity
@Table(name = "BASE_OPERATION")
public class Operation  extends IdEntity {
	@Column(name="USERNAME")
	private String userName;//用户名
	@Column(name="CREATE_TIME")
	private Date createTime;//操作时间
	@Column(name="MODEL")
	private String model;//模型
	@Column(name="OPERATION")
	private String operation;//操作
	@Column(name="PARAMETER")
	private String parameter;///参数
	@Column(name="SUCCESS")
	private Boolean success;//是否成功
	@Column(name="INFO")
	private String info;//信息
	@Column(name="IP")
	private String ipAddr;//IP地址
	
	public String getIpAddr() {
		return ipAddr;
	}
	public void setIpAddr(String ipAddr) {
		this.ipAddr = ipAddr;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getModel() {
		return model;
	}
	public void setModel(String model) {
		this.model = model;
	}
	public String getOperation() {
		return operation;
	}
	public void setOperation(String operation) {
		this.operation = operation;
	}
	public String getParameter() {
		return parameter;
	}
	public void setParameter(String parameter) {
		this.parameter = parameter;
	}
	public Boolean getSuccess() {
		return success;
	}
	public void setSuccess(Boolean success) {
		this.success = success;
	}
	public String getInfo() {
		return info;
	}
	public void setInfo(String info) {
		this.info = info;
	}
	@Override
	public String toString() {
		return "Operation [userName=" + userName + ", createTime=" + createTime
				+ ", model=" + model + ", operation=" + operation
				+ ", parameter=" + parameter + ", success=" + success
				+ ", info=" + info + ", ipAddr=" + ipAddr + "]";
	}
	

}
